-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cnf-tests: Add numa tests with multiple interfaces #1590
cnf-tests: Add numa tests with multiple interfaces #1590
Conversation
Hi @gkopels. Thanks for your PR. I'm waiting for a openshift-kni member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
aa80665
to
2fc780a
Compare
/ok-to-test |
Test cases uses a set SriovNetworkNodePolicies and performance profile to control NUMA node placement in test. This test creates a pod with sriov interface on NUMA node 1 with the sriov interface in NUMA node 0. The excludeTopology is set to True. THe pod is expected to be deployed.
2fc780a
to
39ad6b8
Compare
82a15e7
to
060a3dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left few minor comments. Overall PR looks good to me
"testNuma1NIC1ExcludeTopoplogyFalse", ipam, false) | ||
|
||
createSriovNetworkAndPolicyForNumaAffinityTest(8, numa1DeviceList[0], "#4-7", | ||
"test-numa-1-nic2-exclude-topology-true-", testingNode.Name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
"test-numa-1-nic2-exclude-topology-true-", testingNode.Name, | |
"test-numa-1-nic1-exclude-topology-true-", testingNode.Name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
@@ -62,39 +67,52 @@ var _ = Describe("[sriov] NUMA node alignment", Ordered, func() { | |||
sriovDevices, err := sriovCapableNodes.FindSriovDevices(testingNode.Name) | |||
Expect(err).ToNot(HaveOccurred()) | |||
|
|||
numa0Device, err := findDeviceOnNUMANode(testingNode, sriovDevices, "0") | |||
numa0DeviceList, err = findDevicesOnNUMANode(testingNode, sriovDevices, "0") | |||
Expect(err).ToNot(HaveOccurred()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to assert on device list length
Expect(err).ToNot(HaveOccurred()) | |
Expect(len(numa0DeviceList)).To(BeNumerically(">=", 1)) | |
Expect(err).ToNot(HaveOccurred()) |
Same for NUMA1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
Expect(err).ToNot(HaveOccurred()) | ||
By("Using NUMA0 device " + numa0Device.Name) | ||
By("Using NUMA0 device1 " + numa0DeviceList[0].Name) | ||
By("Using NUMA0 device2 " + numa0DeviceList[1].Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, move it in the if len(numa0DeviceList) > 1 {
body
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved
g.Expect(err).ToNot(HaveOccurred()) | ||
g.Expect(actualPod.Status.QOSClass).To(Equal(corev1.PodQOSGuaranteed)) | ||
g.Expect(actualPod.Status.Phase).To(Equal(corev1.PodFailed)) | ||
g.Expect(actualPod.Status.Message).To(ContainSubstring("Resources cannot be allocated with Topology locality")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, assert on Status.Reason
g.Expect(actualPod.Status.Message).To(ContainSubstring("Resources cannot be allocated with Topology locality")) | |
g.Expect(actualPod.Status.Reason).To(Equal("TopologyAffinityError")) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
060a3dc
to
3b3d999
Compare
64b3907
to
66fd322
Compare
66fd322
to
2e4e43a
Compare
/approve @SchSeba there are some pushes after your comment. Please, have a look |
/override ci/prow/e2e-gcp-ovn
|
@zeeke: Overrode contexts on behalf of zeeke: ci/prow/e2e-gcp-ovn In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gkopels, SchSeba, zeeke The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/override ci/prow/e2e-gcp-ovn |
@zeeke: Overrode contexts on behalf of zeeke: ci/prow/e2e-gcp-ovn In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Test cases uses a set SriovNetworkNodePolicies and performance profile to control NUMA node placement in test.
This test creates a pod with sriov interface on NUMA node 1 with the sriov interface in NUMA node 0. The excludeTopology is set to True. THe pod is expected to be deployed.